#!/bin/sh
export GWT_EXTERNAL_BROWSER=firefox;

SCRIPTDIR=`dirname $0`;
APPDIR=$SCRIPTDIR;

GWTDIR=/usr/local/gwt-linux-1.5.2

CLASSPATH="$SCRIPTDIR";
CLASSPATH="$CLASSPATH:$APPDIR/src:$APPDIR/bin.src";
CLASSPATH="$CLASSPATH:$APPDIR/../Domain/src:$APPDIR/../Domain/bin.src";
CLASSPATH="$CLASSPATH:$APPDIR/../DataServer/src:$APPDIR/../DataServer/bin.src";
CLASSPATH="$CLASSPATH:$APPDIR/../Utils/src:$APPDIR/../Utils/bin.src";
CLASSPATH="$CLASSPATH:$GWTDIR/gwt-user.jar:$GWTDIR/gwt-dev-linux.jar";
for u in `ls $APPDIR/../Utils/lib/*.jar`; do
	CLASSPATH="$CLASSPATH:$u";
done;

echo $CLASSPATH;

java  -Xmx256M -cp $CLASSPATH com.google.gwt.dev.GWTShell -out "$APPDIR/www" "$@" org.nicocube.airain.gwt.AirainWeb/AirainWeb.html;
